package com.lab.service;

import java.util.List;

import com.lab.pojo.Users;
import com.lab.pojo.UsersDAO;
import com.lab.util.Const;

public class UsersService {
	public UsersDAO usersDao;
	public void setUsersDao(UsersDAO usersDao) {
		this.usersDao = usersDao;
	}
	
	
	
	public String saveUsers(Users users){
		usersDao.save(users);
		return Const.SUCCESS;
	}
	public List<?> findAll(){
		return usersDao.findAll();
	}
	
}
